package net.yvesd.cellhunter.model.filter;

import java.util.ArrayList;
import java.util.List;

import net.yvesd.cellhunter.model.coverage.SignalStrengthLocation;

public class LocationZeroAccuracyFilter implements Filter {

	@Override
	public List<SignalStrengthLocation> filter(int lac, int cid,
			List<SignalStrengthLocation> signalStrenghLocations) {

		List<SignalStrengthLocation> list = new ArrayList<SignalStrengthLocation>();

		for (SignalStrengthLocation location : signalStrenghLocations) {
			if (location.getLocation().getAccuracy() > 0f)
				list.add(location);
		}

		return list;
	}
}
